package com.yc.mybatis.students.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 该表用于存储学校开设的所有专业信息
 * </p>
 *
 * @author k
 * @since 2024-12-08
 */
@Getter
@Setter
@TableName("majors")
public class Majors implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "major_id", type = IdType.AUTO)
    private Integer majorId;

    /**
     * 专业名称，唯一标识每个专业，最长为50个字符
     */
    @TableField("major_name")
    private String majorName;
}
